solution of linear equation by graphical method